/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.suspend.e;

import android.text.TextUtils;
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public class b {
    private String a;
    private String b;
    private int c;
    private String d;
    private String e;
    private String f;
    private String g;
    private String h;
    private String i;
    private String j;
    private String k;
    private int l;
    private int m;
    private int n;

    public String a() {
        return this.g;
    }

    public void a(String paramString) {
        this.g = paramString;
    }

    public int b() {
        return this.l;
    }

    public void a(int paramInt) {
        this.l = paramInt;
    }

    public String c() {
        return this.e;
    }

    public void b(String paramString) {
        this.e = paramString;
    }

    public String d() {
        return this.j;
    }

    public void c(String paramString) {
        this.j = paramString;
    }

    public void d(String paramString) {
        this.k = paramString;
    }

    public String e() {
        return this.a;
    }

    public void e(String paramString) {
        this.a = paramString;
    }

    public void f(String paramString) {
        this.b = paramString;
    }

    public void b(int paramInt) {
        this.c = paramInt;
    }

    public void c(int paramInt) {
        this.m = paramInt;
    }

    public void d(int paramInt) {
        this.n = paramInt;
    }

    public String f() {
        return this.d;
    }

    public void g(String paramString) {
        this.d = paramString;
    }

    public String g() {
        return this.f;
    }

    public void h(String paramString) {
        this.f = paramString;
    }

    public String h() {
        return this.h;
    }

    public void i(String paramString) {
        this.h = paramString;
    }

    public String i() {
        return this.i;
    }

    public void j(String paramString) {
        this.i = paramString;
    }

    public static ArrayList k(String paramString) {
        if (TextUtils.isEmpty(paramString))
            return null;
        return l(paramString);
    }

    private static ArrayList l(String paramString) {
        com.qihoo.gamecenter.sdk.suspend.b.b.a("CurrgameConfigEntity", paramString);
        ArrayList localArrayList = new ArrayList();
        b localb = null;
        try {
            JSONObject localJSONObject1 = new JSONObject(paramString);
            int i1 = localJSONObject1.optInt("errno");
            if (i1 != 0)
                return null;
            if (localJSONObject1.has("data")) {
                JSONObject localJSONObject2 = localJSONObject1.getJSONObject("data");
                if (localJSONObject2.has("conf")) {
                    JSONArray localJSONArray = localJSONObject2.getJSONArray("conf");
                    if ((localJSONArray != null) && (localJSONArray.length() > 0)) {
                        int i2 = localJSONArray.length();
                        for (int i3 = 0; i3 < i2; ++i3) {
                            JSONObject localJSONObject3 = (JSONObject) localJSONArray.get(i3);
                            localb = new b();
                            localb.e(localJSONObject3.optString("m_key"));
                            localb.f(localJSONObject3.optString("m_val"));
                            localb.b(localJSONObject3.optInt("pos"));
                            localb.d(localJSONObject3.optInt("ui_level"));
                            localb.c(localJSONObject3.optInt("ui_type"));
                            localb.a(256 + i3 + 1);
                            JSONObject localJSONObject4;
                            if (localJSONObject3.has("float_conf")) {
                                localJSONObject4 = localJSONObject3.getJSONObject("float_conf");
                                localb.b(localJSONObject4.optString("menuIcon"));
                                localb.h(localJSONObject4.optString("menuName"));
                                localb.j(localJSONObject4.optString("onclick"));
                                localb.a(localJSONObject4.optString("activityname"));
                                localb.i(localJSONObject4.optString("itemParam"));
                            }
                            if (localJSONObject3.has("float_setting")) {
                                localJSONObject4 = localJSONObject3.getJSONObject("float_setting");
                                localb.c(localJSONObject4.optString("menuIcon"));
                                localb.d(localJSONObject4.optString("menuName"));
                            }
                            localArrayList.add(localb);
                        }
                    }
                }
            }
        } catch (JSONException localJSONException) {
            com.qihoo.gamecenter.sdk.suspend.b.b.a("CurrgameConfigEntity", localJSONException);
        }
        return localArrayList;
    }
}